package com.thomas.entity;

/** 
 * @ClassName: PageBean 
 * @Description: 分页Model类
 * @author thomas_liu  
 * @date 2017年5月15日 下午9:29:35 
 */
public class PageBean {
	
	private int page;//第几页
	private int pageSize;//每页记录数
	private int start;//起始页
	
	
	/**
	 * @param page
	 * @param pageSize
	 */
	public PageBean(int page, int pageSize) {
		super();
		this.page = page;
		this.pageSize = pageSize;
	}
	/**
	 * @return the page
	 */
	public int getPage() {
		return page;
	}
	/**
	 * @param page the page to set
	 */
	public void setPage(int page) {
		this.page = page;
	}
	/**
	 * @return the pageSize
	 */
	public int getPageSize() {
		return pageSize;
	}
	/**
	 * @param pageSize the pageSize to set
	 */
	public void setPageSize(int pageSize) {
		this.pageSize = pageSize;
	}
	/**
	 * @return the start
	 */
	public int getStart() {
		return (page-1)*pageSize;
	}
	/**
	 * @param start the start to set
	 */
	public void setStart(int start) {
		this.start = start;
	}
	
	

}
